﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;
using Yoozoo.Managers.GameScene.Runtime.Procedure.Core;

namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooManagersGameSceneRuntimeProcedureCoreProcedureProgramWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram);
			Utils.BeginObjectRegister(type, L, translator, 0, 18, 2, 0);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnFinish", _m_OnFinish);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Begin", _m_Begin);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Append", _m_Append);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Run", _m_Run);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Composite", _m_Composite);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "PreLoadAssets", _m_PreLoadAssets);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnLoadAssets", _m_UnLoadAssets);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnLoadAssetsAll", _m_UnLoadAssetsAll);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GC", _m_GC);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadUnusedAssets", _m_UnloadUnusedAssets);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAsset", _m_LoadAsset);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnLoadAsset", _m_UnLoadAsset);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadScene", _m_LoadScene);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnLoadScene", _m_UnLoadScene);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAndInstantiatePrefab", _m_LoadAndInstantiatePrefab);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnLoadAndDestoryPrefab", _m_UnLoadAndDestoryPrefab);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "BindLuaTable", _m_BindLuaTable);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CallLuaFunction", _m_CallLuaFunction);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "Name", _g_get_Name);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Record", _g_get_Record);
            
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<Yoozoo.Managers.GameScene.Runtime.Record.RecorderGroup>(L, 2))
				{
					Yoozoo.Managers.GameScene.Runtime.Record.RecorderGroup _recorder = (Yoozoo.Managers.GameScene.Runtime.Record.RecorderGroup)translator.GetObject(L, 2, typeof(Yoozoo.Managers.GameScene.Runtime.Record.RecorderGroup));
					
					var gen_ret = new Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram(_recorder);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1 && translator.Assignable<Yoozoo.Managers.GameScene.Runtime.Record.RecorderGroup>(L, 1))
				{
					Yoozoo.Managers.GameScene.Runtime.Record.RecorderGroup _recorder = (Yoozoo.Managers.GameScene.Runtime.Record.RecorderGroup)translator.GetObject(L, 1, typeof(Yoozoo.Managers.GameScene.Runtime.Record.RecorderGroup));
					
					var gen_ret = new Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram(_recorder);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnFinish(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _success = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.OnFinish( _success );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Begin(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.Begin(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Append(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure>(L, 2)) 
                {
                    Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure _procedure = (Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure)translator.GetObject(L, 2, typeof(Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure));
                    
                        var gen_ret = gen_to_be_invoked.Append( _procedure );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count >= 2&& translator.Assignable<Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure>(L, 2)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable<object>(L, 3))) 
                {
                    Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure _procedure = (Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure)translator.GetObject(L, 2, typeof(Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure));
                    object[] _param = translator.GetParams<object>(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.Append( _procedure, _param );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram.Append!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Run(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    System.Action _onFinish = translator.GetDelegate<System.Action>(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.Run( _onFinish );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Composite(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    int _cnt = LuaAPI.xlua_tointeger(L, 2);
                    bool _parallel = LuaAPI.lua_toboolean(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.Composite( _cnt, _parallel );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    int _cnt = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.Composite( _cnt );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram.Composite!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PreLoadAssets(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<string[]>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    string[] _resources = (string[])translator.GetObject(L, 2, typeof(string[]));
                    bool _sequence = LuaAPI.lua_toboolean(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.PreLoadAssets( _resources, _sequence );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& translator.Assignable<string[]>(L, 2)) 
                {
                    string[] _resources = (string[])translator.GetObject(L, 2, typeof(string[]));
                    
                        var gen_ret = gen_to_be_invoked.PreLoadAssets( _resources );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram.PreLoadAssets!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnLoadAssets(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<string[]>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    string[] _resources = (string[])translator.GetObject(L, 2, typeof(string[]));
                    bool _sequence = LuaAPI.lua_toboolean(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.UnLoadAssets( _resources, _sequence );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& translator.Assignable<string[]>(L, 2)) 
                {
                    string[] _resources = (string[])translator.GetObject(L, 2, typeof(string[]));
                    
                        var gen_ret = gen_to_be_invoked.UnLoadAssets( _resources );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram.UnLoadAssets!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnLoadAssetsAll(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.UnLoadAssetsAll(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GC(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GC(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnloadUnusedAssets(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.UnloadUnusedAssets(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAsset(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _assetPath = LuaAPI.lua_tostring(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.LoadAsset( _assetPath );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnLoadAsset(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _assetPath = LuaAPI.lua_tostring(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.UnLoadAsset( _assetPath );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadScene(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    string _scenePath = LuaAPI.lua_tostring(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.LoadScene( _scenePath );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    string _scenePath = LuaAPI.lua_tostring(L, 2);
                    bool _isActiveScene = LuaAPI.lua_toboolean(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.LoadScene( _scenePath, _isActiveScene );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram.LoadScene!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnLoadScene(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _scenePath = LuaAPI.lua_tostring(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.UnLoadScene( _scenePath );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAndInstantiatePrefab(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _prefabPath = LuaAPI.lua_tostring(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.LoadAndInstantiatePrefab( _prefabPath );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnLoadAndDestoryPrefab(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _prefabPath = LuaAPI.lua_tostring(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.UnLoadAndDestoryPrefab( _prefabPath );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_BindLuaTable(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    XLua.LuaTable _luaTable = (XLua.LuaTable)translator.GetObject(L, 2, typeof(XLua.LuaTable));
                    
                        var gen_ret = gen_to_be_invoked.BindLuaTable( _luaTable );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CallLuaFunction(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    XLua.LuaFunction _luaFunction = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction));
                    
                        var gen_ret = gen_to_be_invoked.CallLuaFunction( _luaFunction );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Name(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.Name);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Record(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Core.ProcedureProgram)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.Record);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
		
		
		
		
    }
}
